package com.sugar.real.estate.module.business.controller.admin.designplan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Schema(description = "管理后台 - 设计方案新增/修改 Request VO")
@Data
public class DesignPlanSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "32722")
    private Long id;

    @Schema(description = "中文标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "中文标题不能为空")
    private String titleZhCn;

    @Schema(description = "英文标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "英文标题不能为空")
    private String titleEnUs;

    @Schema(description = "图片（多个逗号分隔）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "图片不能为空")
    @Size(min = 1, message = "图片不能为空")
    private List<String> showImages;

    @Schema(description = "内容中文详情", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容中文详情不能为空")
    private String contentZhCn;

    @Schema(description = "内容英文详情", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "内容英文详情不能为空")
    private String contentEnUs;

}